package org.fjsei.yewu.entity.fjtj;

import lombok.*;
import org.fjsei.yewu.filter.Node;
import org.fjsei.yewu.pojo.SliceSyncRes;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

/*安全机构分支，部门：是分开的
* */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "TB_UNT_SECUDEPT" )
@Builder(toBuilder=true)
public class UntSecudept implements SliceSyncRes, Node<Long> {
    @Id
    @Column(name = "ID", insertable=false, updatable=false)
    protected Long id;

    private String name;
    //对外标识地址
    private String  SECUDEPT_ADDR;

    /*
 地址Division#Address.$Adminunit.areacode 代替这个SECUDEPT_AREA_COD。
SECUDEPT_AREA_COD VARCHAR2(12),　当前使用单位的分支机构不在监察机构管辖的区域范围内！JC_JCUNT_AREA  SUBSTR(AREA_COD,1,4)
 监察机构管辖的区域范围？in某个省，|| in某个地级市，|| in某些县级区级，|| in某些乡镇。
  */
    private String  SECUDEPT_AREA_COD;

    private String LKMEN;
    private String PHONE;
    private String MOBILE;      //优先使用

    private Long  UNT_ID;
    //没有实际数据！
    private Long  jcId;  //"JC_ID"  //没有实际数据！

    //同步数据环节的处理结果
    private String fail;
}
